package kr.hkit.powerjava.algorithm;

public class StackTest {
	public static void main(String[] args) {
		int size =3;
		Stack stack= new Stack(3);
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		System.out.println("pop"+stack.pop());
		System.out.println("pop"+stack.pop());
		System.out.println("pop"+stack.pop());
		
		for (int i=0 ; i<3 ; i++){
			System.out.println("pop"+stack.pop());
			stack.prnStack();
		}
		for (int i=97; i<size+98;i++){
			stack.push(String.format("%c",i));
			stack.prnStack();
		}
		
	}
}
